package com.bfly.mall.admin.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 管理员表单信息DTO
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/9/16 14:29
 */
public class AdminFormDTO implements Serializable {
    private static final long serialVersionUID = -5706518161482841472L;

    @NotBlank(message = "用户名不能为空!")
    private String userName;

    @NotBlank(message = "密码不能为空!")
    private String password;

    @NotBlank(message = "手机号码不能为空!")
    private String phone;

    @NotBlank(message = "真实姓名不能为空!")
    private String realName;

    @NotEmpty(message = "角色不能为空!")
    private List<Integer> roleIds;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public List<Integer> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Integer> roleIds) {
        this.roleIds = roleIds;
    }
}
